/**
 * @fileoverview The driving namespace in the Trial module.
 *
 * This file is part of the second module to be loaded in the example app.
 * trial.js is responsible for creating a new button and attaching a handler to
 * it that will cause the trial module to be loaded.
 */

goog.provide('ex.trial');

goog.require('goog.dom');
goog.require('ex');
goog.require('ex.core.App');
goog.require('ex.core.ModuleCallback');

/**
 * This function is passed to an ex.core.ModuleCallback instance
 */
ex.trial.callback = function() {
  var newStatus = goog.dom.createDom('div');
  newStatus.innerHTML = "Trial Module loaded!<br />Thank you for trying out builder.py!";
  
  goog.dom.$('status').appendChild(newStatus);
  
  ex.halp.halp();
};

ex.getApp().moduleLoaded(new ex.core.ModuleCallback("trial", ex.trial.callback));